import Vue from 'vue';
import Router from 'vue-router';
import Home from '@/components/home';
import Echars from '@/components/ecs';
import Index from '@/views/index';

import Login from '@/components/login';
Vue.use(Router);
export default new Router({
    mode: 'history',
    routes: [
        {
            path: '/',
            name: 'login',
            component: Login,
        },
        {
            path: '/index',
            name: '主页',
            component: Index,
        },
        {
            path: '/homevue',
            name: 'home',
            component: Home,
        },
        {
            path: '/Echars',
            name: 'Echars',
            component: Echars,
        }
        
    ]
})